<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/webpage/include/taglib.jsp"%>
<html>
<head>
	<title>车位信息管理</title>
	<meta http-equiv="Content-type" content="text/html; charset=utf-8">
	<meta name="decorator" content="ani-layui"/>
	<%@ include file="/webpage/include/bootstraptable.jsp"%>
	<%@include file="/webpage/include/treeview.jsp" %>
	<%@include file="propertyCarinfoList.js" %>
</head>
<body>
	<div class="wrapper wrapper-content">
	<div class="panel panel-primary">
	<div class="panel-heading">
		<h3 class="panel-title">车位信息列表</h3>
	</div>
	<div class="panel-body">
	
	<!-- 搜索 -->
	<div id="search-collapse" class="collapse">
		<div class="accordion-inner">
			<form:form id="searchForm" modelAttribute="propertyCarinfo" class="form form-horizontal well clearfix">
				<div class="col-xs-12 col-sm-6 col-md-4">
					<label class="label-item single-overflow pull-left" title="小区名称：">小区名称：</label>
					<form:select path="buildingid.village.id" class="form-control required" onchange="getBuildinginfo()">
						<form:option value="" label=""/>
						<form:options items="${dvlist}" itemLabel="label" itemValue="value"
									  htmlEscape="false"/>
					</form:select>
				</div>
				<div class="col-xs-12 col-sm-6 col-md-4">
					<label class="label-item single-overflow pull-left" title="楼宇名称：">楼宇名称：</label>
					<form:select path="buildingid.id" class="form-control required"  >
						<form:option value="" label=""/>

					</form:select>
				</div>
			 <div class="col-xs-12 col-sm-6 col-md-4">
				<label class="label-item single-overflow pull-left" title="业主名称：">业主名称：</label>
				<sys:userselect id="houseowner" name="houseowner.id" value="${propertyCarinfo.houseowner.id}" labelName="houseowner.name" labelValue="${propertyCarinfo.houseowner.name}"
							    cssClass="form-control required"/>
			</div>
			 <div class="col-xs-12 col-sm-6 col-md-4">
				<label class="label-item single-overflow pull-left" title="汽车类型：">汽车类型：</label>
				<form:select path="cartype"  class="form-control m-b">
					<form:option value="" label=""/>
					<form:options items="${fns:getDictList('car_type')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
				</form:select>
			</div>
			 <div class="col-xs-12 col-sm-6 col-md-4">
				<label class="label-item single-overflow pull-left" title="停车类型：">停车类型：</label>
				<form:select path="carparktype"  class="form-control m-b">
					<form:option value="" label=""/>
					<form:options items="${fns:getDictList('car_park_type')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
				</form:select>
			</div>
			 <div class="col-xs-12 col-sm-6 col-md-4">
				<div class="form-group">
					<label class="label-item single-overflow pull-left" title="停车时间起：">&nbsp;停车时间起：</label>
					<div class="col-xs-12">
						<div class='input-group date' id='parkstarttime' >
			                   <input type='text'  name="parkstarttime" class="form-control"  />
			                   <span class="input-group-addon">
			                       <span class="glyphicon glyphicon-calendar"></span>
			                   </span>
			            </div>	
					</div>
				</div>
			</div>
			 <div class="col-xs-12 col-sm-6 col-md-4">
				<div class="form-group">
					<label class="label-item single-overflow pull-left" title="停车时间止：">&nbsp;停车时间止：</label>
					<div class="col-xs-12">
						<div class='input-group date' id='parkendtime' >
			                   <input type='text'  name="parkendtime" class="form-control"  />
			                   <span class="input-group-addon">
			                       <span class="glyphicon glyphicon-calendar"></span>
			                   </span>
			            </div>	
					</div>
				</div>
			</div>
			 <div class="col-xs-12 col-sm-6 col-md-4">
				<label class="label-item single-overflow pull-left" title="车牌号：">车牌号：</label>
				<form:input path="Carno" htmlEscape="false" maxlength="64"  class=" form-control"/>
			</div>
		 <div class="col-xs-12 col-sm-6 col-md-4">
			<div style="margin-top:26px">
			  <a  id="search" class="btn btn-primary btn-rounded  btn-bordered btn-sm"><i class="fa fa-search"></i> 查询</a>
			  <a  id="reset" class="btn btn-primary btn-rounded  btn-bordered btn-sm" ><i class="fa fa-refresh"></i> 重置</a>
			 </div>
	    </div>	
	</form:form>
	</div>
	</div>
	
	<!-- 工具栏 -->
	<div id="toolbar">
			<%--<shiro:hasPermission name="property:carinfo:propertyCarinfo:add">--%>
				<%--<button id="add" class="btn btn-primary" onclick="add()">--%>
					<%--<i class="glyphicon glyphicon-plus"></i> 新建--%>
				<%--</button>--%>
			<%--</shiro:hasPermission>--%>
				<shiro:hasPermission name="property:houseinfo:propertyHouseinfo:edit">
					<button id="edit" class="layui-btn  layui-btn-sm layui-btn-normal layui-btn-radius" disabled onclick="edit()">
						<i class="layui-icon layui-icon-edit"></i> <font size="2px;">修改</font>
					</button>
				</shiro:hasPermission>
				<shiro:hasPermission name="property:houseinfo:propertyHouseinfo:del">
					<button id="remove" class="layui-btn layui-btn-sm layui-btn-danger layui-btn-radius " disabled onclick="deleteAll()">
						<i class="layui-icon layui-icon-delete"></i> <font size="2px;">删除</font>
					</button>
				</shiro:hasPermission>
			<%--<shiro:hasPermission name="property:carinfo:propertyCarinfo:import">--%>
				<%--<button id="btnImport" class="btn btn-info"><i class="fa fa-folder-open-o"></i> 导入</button>--%>
			<%--</shiro:hasPermission>--%>
			<%--<shiro:hasPermission name="property:carinfo:propertyCarinfo:export">--%>
	        		<%--<button id="export" class="btn btn-warning">--%>
					<%--<i class="fa fa-file-excel-o"></i> 导出--%>
				<%--</button>--%>
			 <%--</shiro:hasPermission>--%>
	                 <%--<shiro:hasPermission name="property:carinfo:propertyCarinfo:view">--%>
				<%--<button id="view" class="btn btn-default" disabled onclick="view()">--%>
					<%--<i class="fa fa-search-plus"></i> 查看--%>
				<%--</button>--%>
			<%--</shiro:hasPermission>--%>
		    </div>
		
	<!-- 表格 -->
	<table id="propertyCarinfoTable"   data-toolbar="#toolbar"></table>

    <!-- context menu -->
    <ul id="context-menu" class="dropdown-menu">
    	<shiro:hasPermission name="property:carinfo:propertyCarinfo:view">
        <li data-item="view"><a>查看</a></li>
        </shiro:hasPermission>
    	<shiro:hasPermission name="property:carinfo:propertyCarinfo:edit">
        <li data-item="edit"><a>编辑</a></li>
        </shiro:hasPermission>
        <shiro:hasPermission name="property:carinfo:propertyCarinfo:del">
        <li data-item="delete"><a>删除</a></li>
        </shiro:hasPermission>
        <li data-item="action1"><a>取消</a></li>
    </ul>  
	</div>
	</div>
	</div>
</body>
</html>